package com.yxn.base;

/**
 * Created by yanxi on 2018/1/13 0013.
 */

import java.io.Serializable;
import java.util.List;

/**
 * 定义对数据库的增删改查操作
 * @author sivan.l
 *
 * @param <T>
 */
public interface BaseDao<T> {

    public Serializable add(T t);

    public void update(T t);

    public void delete(T t);

    public int delete(Serializable id);

    public T findDataById(Serializable id);

    public List<T> findAllData();

    public List<T> findDataByPage(int pageNum, int pageCount);

    public List<T> findDataByCondition(String conditionName, String conditionValue,String conditionOperation);
}